package com.leo.lime.music.common;

import android.util.Log;

/**
 * Created by android on 18-3-17.
 */

public class Logger {
    private static final String TAG = "LimeMusic";

    private static final boolean VERBOSE = false;
    private static final boolean INFO = false;
    private static final boolean DEBUG = true;
    private static final boolean WARNING = true;
    private static final boolean ERROR = true;

    public static void v(String tag, String text) {
        if(VERBOSE) {
            Log.v(TAG, tag + " | " + text);
        }
    }

    public static void i(String tag, String text) {
        if(INFO) {
            Log.i(TAG, tag + " | " + text);
        }
    }

    public static void d(String tag, String text) {
        if(DEBUG) {
            Log.d(TAG, tag + " | " + text);
        }
    }

    public static void w(String tag, String text) {
        if(WARNING) {
            Log.w(TAG, tag + " | " + text);
        }
    }

    public static void e(String tag, String text) {
        if(ERROR) {
            Log.e(TAG, tag + " | " + text);
        }
    }
}
